import { BaseService, Service, Permission } from '@/cool';

@Service('crm/baiduTongji')
export default class extends BaseService {
	@Permission('flowStatistics')
	flowStatistics(params) {
		return this.request({
			url: '/flowStatistics',
			params: {
				...params
			}
		});
	}

	@Permission('flowStatisticsExport')
	flowStatisticsExport(params) {
		return this.request({
			url: '/flowStatisticsExport',
			params: {
				...params
			}
		});
	}

	@Permission('tradeStatistics')
	tradeStatistics(params) {
		return this.request({
			url: '/tradeStatistics',
			params: {
				...params
			}
		});
	}

	@Permission('tradeStatisticsExport')
	tradeStatisticsExport(params) {
		return this.request({
			url: '/tradeStatisticsExport',
			params: {
				...params
			}
		});
	}

	@Permission('refreshSiteStatistics')
	refreshSiteStatistics(params) {
		return this.request({
			url: '/refreshSiteStatistics',
			params: {
				...params
			}
		});
	}

	@Permission('flowStatisticsSelf')
	flowStatisticsSelf(params) {
		return this.request({
			url: '/flowStatisticsSelf',
			params: {
				...params
			}
		});
	}
}
